package com.second.order.pojo.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;


/**
 * (OrderCost)表实体类
 *
 * @author lvyongqi
 * @since 2021-07-31 16:28:44
 */
@Data
@TableName("order_cost")
@ApiModel(value = "费用明细表实体类")
public class OrderCost{

    /**
     * 主键id
     */
    @TableId(value = "id",type = IdType.AUTO)
    @ApiModelProperty(value = "主键id")
    private Integer id;

    /**
     * 费用id
     */
    @ApiModelProperty(value = "费用id")
    private Integer costId;

    /**
     * 支付方式
     */
    @ApiModelProperty(value = "支付方式")
    private String paymentMethod;

    /**
     * 原价
     */
    @ApiModelProperty(value = "原价")
    private Double originalPrice;

    /**
     * 优惠券id
     */
    @ApiModelProperty(value = "优惠券id")
    private Integer couponId;

    /**
     * 实付金额
     */
    @ApiModelProperty(value = "实付金额")
    private Double paidAmount;

    /**
     * 应付金额
     */
    @ApiModelProperty(value = "应付金额")
    private Double amountPayable;

    /**
     * 支付时间
     */
    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "支付时间")
    private String paymentTime;

    /**
     * 应付金额
     */
    @ApiModelProperty(value = "支付流水")
    private String paymentStream;

    /**
     * 会员id
     */
    @ApiModelProperty(value = "会员id")
    private Integer clientId;

    /**
     * 额外费用
     */
    @ApiModelProperty(value = "额外费用")
    private Double otherAmount;

    /**
     * 优惠券名称
     */
    @TableField(exist = false)
    @ApiModelProperty(value = "优惠券名称")
    private String couponName;

    /**
     * 优惠券金额
     */
    @TableField(exist = false)
    @ApiModelProperty(value = "优惠券金额")
    private Integer couponAmount;

}
